/*
 * Copyright (c) 2022-2023 cetcclout Co., Ltd All rights reserved.
 * Sensor Adapter is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package com.cetccloud.cimp.adapter.handler;

import com.cetccloud.cimp.common.util.SensorStringUtils;

/**
 * @author
 * @apiNote 数据包常量
 * @date 2022/10/14 14:35
 */
public class DataContextValue {


	public static final String DEVICE_KEY = DataContextValue.SENSOR_PREFIX + "devices:%s";

	public static final String DATA_TOPIC = "sensor_data";
	
    public static final String DTU_STATUS_KEY = DataContextValue.SENSOR_PREFIX + "device_status:"+ SensorStringUtils.getHostName().toLowerCase();

    //项目缓存前缀
    public static final String SENSOR_PREFIX = "sensor:";
    

}
